#!/usr/bin/python3
# -*- coding: utf-8 -*-
# Copyright (c) 61DUke.

# THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR FIT FOR A PARTICULAR
# PURPOSE.
# See the Readme Document for more details.
# Create: 2020-12-27

"""The setup script."""

from setuptools import setup, find_packages
import os

with open("README.rst", "r", encoding="utf-8") as readme_file:
    readme = readme_file.read()

with open("HISTORY.rst", "r", encoding="utf-8") as history_file:
    history = history_file.read()

dir_ = os.path.dirname(os.path.abspath(__file__))
requirements = open(os.path.join(dir_, "requirements.txt"), "r", encoding="utf-8").read().splitlines()

setup_requirements = ["pytest-runner", ]

test_requirements = ["pytest>=3", ]

setup(
    author="61Duke",
    author_email="loveweihaitong@foxmail.com",
    python_requires=">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*",
    classifiers=[
        "Development Status :: 2 - Pre-Alpha",
        "Intended Audience :: Developers",
        "License :: OSI Approved :: MIT License",
        "Natural Language :: English",
        "Programming Language :: Python :: 2",
        "Programming Language :: Python :: 2.7",
        "Programming Language :: Python :: 3",
        "Programming Language :: Python :: 3.5",
        "Programming Language :: Python :: 3.6",
        "Programming Language :: Python :: 3.7",
    ],
    description="dkimageapp是61Duke于2020年整合工作与学习研发关于图像处理的实用工具Python依赖库模块，该模块统一规范的API"
                "接口，承载个人未来工作中开发有关图像处理实际应用。该模块由算法科学家61Duke独家研发，提供图像裁剪、合并、图像格式转换、"
                "色调占比提取、颜色相似度、图像定位和图像检索等功能。dkimageapp 模块为各个项目和业务提供支持。",
    entry_points={
        "console_scripts": [
            "dkimageapp=dkimageapp.cli:main",
        ],
    },
    install_requires=requirements,
    license="MIT license",
    long_description=readme + "\n\n" + history,
    include_package_data=True,
    keywords="dkimageapp",
    name="dkimageapp",
    packages=find_packages(include=["dkimageapp", "dkimageapp.*"]),
    setup_requires=setup_requirements,
    test_suite="tests",
    tests_require=test_requirements,
    url="https://gitee.com/weihaitong/dkimageapp",
    version="0.1.0",
    zip_safe=False,
)
